-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Add quicklink support #612
Conversation
🔔 need help
I tried to ignore url of post-copyright-link but failures cause I'm not familiar with the CSS selector. See Set the DOM element to observe for in-viewport linksI and Custom Ignore Patterns. I am not a programmer, this is my first PR. I stumbled upon quicklink and trIed to add it to NexT. 🥇 suggested scenarioVisitors are almost from advanced modern browsers, and you have set appropriate Cache-Control headers for better browser caching. I'm using Nginx to set Cache-Control header for different file and path, everything is OK. First time to disable cache in Chrome F12 is always slow, here is a fresh demo:
|
So, PR actually worked for now? Or it have some bugs? |
@ivan-nginx Yes, I have enabled quicklink on my blog, seems good. |
Also, can u add docs in NexT website how to use this feature? |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue resolved N/A
What is the new behavior?
When a page has finished loading, quicklink will attempt to use fetch() or falls back to XHR to prefetch URLs (same origin and ignore # such as #more) for links that are in-viewport during idle time.
Put simply, the links you can see will be prefetched. For example, if your sidebar is hidden at first, you need to open the sidebar to prefetch the rss link because you can't see it.
How to use?
In NexT
_config.yml
:Does this PR introduce a breaking change?